package cn.iocoder.yudao.module.project.controller.admin.weighthistory.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

@Schema(description = "管理后台 - 称重业务 Response VO")
@Data
@ExcelIgnoreUnannotated
public class WeightHistoryReportVO {

    @Schema(description = "主键编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "12246")
    private String id;

    @Schema(description = "内码编号")
    private String internalCode;

    @Schema(description = "电子秤id", example = "25230")
    private Long scaleId;

    @Schema(description = "电子秤名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    private String scaleName;

    @Schema(description = "ip", requiredMode = Schema.RequiredMode.REQUIRED)
    private String ip;

    @Schema(description = "port", requiredMode = Schema.RequiredMode.REQUIRED)
    private String port;

    @Schema(description = "重量(g)")
    private Double weight;

    @Schema(description = "重量状态(0:正常:1过轻,2:过重)", example = "2")
    private Integer weightStatus;
    private String weightStatusStr;

    @Schema(description = "操作员", requiredMode = Schema.RequiredMode.REQUIRED)
    private String operator;

    @Schema(description = "操作时间")
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",locale = "zh_CN",timezone = "GMT+8")
    private Date operatingTime;

    @Schema(description = "备注", example = "你说的对")
    private String remark;

    @Schema(description = "订单编号")
    private String orderCode;

    @Schema(description = "型号", example = "1")
    private String type;

    @Schema(description = "称重工位ID")
    private Integer weightWorkstationId;

    @Schema(description = "称重工位用户ID")
    private Integer weightWorkstationUserId;

    @Schema(description = "订单规格")
    private String flex;

    @Schema(description = "长度")
    private Integer len;

}
